package org.jeecg.modules.admin.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.admin.mapper.XxlJobLogMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * test
 */
@RestController
@Api(tags = "test")
@RequiredArgsConstructor
public class TestController {
    private final XxlJobLogMapper xxlJobLogMapper;

    @ApiOperation(value = "test", notes = "test")
    @GetMapping(value = "/test")
    public Result<?> test() {
        return Result.OK().success("测试");
    }

    @ApiOperation(value = "test2", notes = "test")
    @GetMapping(value = "/test/2")
    public Result<?> test2() {
        return Result.OK().success("测试");
    }

    @ApiOperation("测试多数据源")
    @GetMapping(value = "/test/3")
    public Result<?> test3() {
        xxlJobLogMapper.selectList(null);
        return Result.OK().success("测试");
    }
}
